clear all
use "~/final_dataset.dta"
label define Authority2 0."Other" 1."Municipal Police" 2."State Police" 3."Federal Police" 4."Judicial Police" 5."Army or Navy" 
label values Authority2 Authority2



set matsize 7000

drop if missing(allreform_with_fed)
eststo clear
cem age_at_arrest federal_prison (.5) homicide (.5) kidnap (.5) illegal_weapons (.5) rape (.5) drug_possess (.5) drug_commerce (.5) theft (.5) sentenced (.5 1.5 2.5 3.5), treatment(allreform_with_fed)
eststo: reg brute_force_dum allreform_with_fed [iweight=cem_weights], vce(cluster group_id)
eststo: reg institutional_torture_dum allreform_with_fed [iweight=cem_weights], vce(cluster group_id)
eststo: reg threat_dum allreform_with_fed [iweight=cem_weights], vce(cluster group_id)

eststo clear
cem age_at_arrest federal_prison (.5) Authority2 (1.5 2.5 3.5 4.5) homicide (.5) kidnap (.5) illegal_weapons (.5) rape (.5) drug_possess (.5) drug_commerce (.5) theft (.5) sentenced (.5 1.5 2.5 3.5), treatment(allreform_with_fed)
eststo: reg brute_force_dum allreform_with_fed [iweight=cem_weights], vce(cluster group_id)
eststo: reg institutional_torture_dum allreform_with_fed [iweight=cem_weights], vce(cluster group_id)
eststo: reg threat_dum allreform_with_fed [iweight=cem_weights], vce(cluster group_id)
